package name.luojun.orm.model;
import java.util.List;
public class ForeignKey {
	private String name;
	private List<SimpleColumn> columns;
	private String reftable;
	private List<String> refcolumns;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<SimpleColumn> getColumns() {
		return columns;
	}
	public void setColumns(List<SimpleColumn> columns) {
		this.columns = columns;
	}
	public String getReftable() {
		return reftable;
	}
	public void setReftable(String reftable) {
		this.reftable = reftable;
	}
	public List<String> getRefcolumns() {
		return refcolumns;
	}
	public void setRefcolumns(List<String> refcolumns) {
		this.refcolumns = refcolumns;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((columns == null) ? 0 : columns.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((refcolumns == null) ? 0 : refcolumns.hashCode());
		result = prime * result + ((reftable == null) ? 0 : reftable.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		return true;
	}
}
